// by Xeno
private ["_vehicle", "_poss"];
#include "x_setup.sqf"

x_sm_pos = [[6813.6182,10133.438,0], [6950.6182,10000.438,0]]; // index: 7,   Training facility near Gorka
x_sm_type = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "There is an enemy training facility near Poitzen. Destroy the main building to cut down their possibilities to train new soldiers.";
	d_current_mission_resolved_text = "Good job. The main building of the training facility is destroyed.";
};

if (isServer) then {
	__PossAndOther
	_vehicle = "Land_Barrack2" createvehicle (_poss);
#ifndef __TT__
	[_vehicle] execFSM "fsms\XCheckSMHardTarget.fsm";
#else
	[_vehicle] execFSM "fsms\XCheckSMHardTargetTT.fsm";
#endif
	_vehicle setDir 270;
	sleep 2.132;
	["specops", 2, "basic", 3, _poss,80,false] spawn XCreateInf;
	sleep 2.234;
	["shilka", 0, "uaz_grenade", 1, "uaz_mg", 2, _poss,1,110,false] spawn XCreateArmor;
	__AddToExtraVec(_vehicle)
};